package com.yixin.ystartlibrary.base;

import com.google.gson.annotations.SerializedName;

/**
 * Created by Administrator on 2018/2/6 0006.
 */

public class BaseEntity<T> {
    /**
     * msg :
     * ret : {}
     * code : 200
     */
    @SerializedName("msg")
    private String msg;
    @SerializedName("data")
    private T data;
    @SerializedName("status")
    private String code;


    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String toString() {
        return "BaseEntity{" +
                "msg='" + msg + '\'' +
                ", data=" + data +
                ", code='" + code + '\'' +
                '}';
    }
}
